package com.example.bijiabao.servicesImpl;

import com.example.bijiabao.entity.user;
import com.example.bijiabao.mapper.usercenterMapper;
import com.example.bijiabao.services.usercenterServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class usercenterServicesImpl implements usercenterServices {

    @Autowired
    private usercenterMapper usercenterMapper;

    @Override
    public user SelectUser(String userName){
        return usercenterMapper.SelectUser(userName);
    }


    @Override
    public Integer UpdateUser(user user){
        return usercenterMapper.UpdateUser(user);

    }
    @Override
    public Integer ResetUserPassWord(String userName,String password) {
        return usercenterMapper.ResetUserPassWord(userName,password);

    }
    @Override
    public String checkPassword(String userName){
        return usercenterMapper.checkPassword(userName);
    }


}
